home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow_WinXP / VideoControl / CPP / StdAfx.h < prev   
Encoding:
C/C++ Source or Header  |  2001-10-08  |  1.8 KB  |  61 lines

  1. //------------------------------------------------------------------------------
  2. // File: stdafx.h
  3. //
  4. // Desc: Include file for standard system include files
  5. //       or project specific include files that are used frequently
  6. //       but are changed infrequently
  7. //
  8. // Copyright (c) 2001 Microsoft Corporation.  All rights reserved.
  9. //------------------------------------------------------------------------------
  10.  
  11. #if !defined(AFX_STDAFX_H__CC50DE5B_97DF_4014_9C89_5E079D7AA958__INCLUDED_)
  12. #define AFX_STDAFX_H__CC50DE5B_97DF_4014_9C89_5E079D7AA958__INCLUDED_
  13.  
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17.  
  18. #define STRICT
  19. #ifndef _WIN32_WINNT
  20. #define _WIN32_WINNT 0x0400
  21. #endif
  22. #define _ATL_APARTMENT_THREADED
  23.  
  24. #include <atlbase.h>
  25.  
  26. // Disable warning message for C4201 - use of nameless struct/union
  27. // Otherwise, strmif.h will generate warnings for Win32 debug builds
  28. #pragma warning( disable : 4201 )  
  29.  
  30. // You may derive a class from CComModule and use it if you want to override
  31. // something, but do not change the name of _Module
  32. class CExeModule : public CComModule
  33. {
  34. public:
  35.     LONG Unlock();
  36.     DWORD dwThreadID;
  37.     HANDLE hEventShutdown;
  38.     
  39.     void MonitorShutdown();
  40.     bool StartMonitor();
  41.     bool bActivity;
  42. };
  43.  
  44. extern CExeModule _Module;
  45.  
  46. #include <atlcom.h>
  47. #include <atlhost.h>
  48.  
  49. // Disable C4701: Variable may be used without having been initialized
  50. // This warning is generated in atlctl.h, which is not in our control
  51. #pragma warning( disable : 4701 )
  52.  
  53. #include <atlctl.h>
  54.  
  55. #pragma warning( default : 4701 )
  56.  
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  59.  
  60. #endif // !defined(AFX_STDAFX_H__CC50DE5B_97DF_4014_9C89_5E079D7AA958__INCLUDED)
  61.